package com.aaa.mapper;

import com.aaa.entity.Melody;
import com.aaa.entity.Playlist;
import com.aaa.entity.Singer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MelodyMapper  extends BaseMapper<Melody> {
    public List<Melody> listMyMelody(@Param("offset") Integer offset, @Param("pageSize") Integer pageSize, @Param("pramykey") String pramykey);

    int count(@Param("pramykey") String pramykey);

    int onSave(Melody melody);

    int onSaveS_M(Melody melody);

    Melody SelectMid(Melody melody);

    int MelodyDelete(Integer mid);

    int DeleteS_M(Integer mid);

    Integer geselect(Integer pid);
}
